package com.aiti.lulian.entity.crm;

import com.aiti.base.core.base.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("CRM列表字段配置实体")
@TableName("crm_list_field_config")
public class CrmListFieldConfig extends BaseEntity {

    @ApiModelProperty("主键")
    @TableId(value = "base_id", type = IdType.ASSIGN_UUID)
    private String baseId;

    @ApiModelProperty("字段名（英文）")
    @TableField("field_name_en")
    private String fieldNameEn;

    @ApiModelProperty("字段名（中文）")
    @TableField("field_name_ch")
    private String fieldNameCh;

    @ApiModelProperty("所属模块")
    @TableField("module")
    private String module;

    @ApiModelProperty("序号")
    @TableField("sort")
    private Integer sort;

    /**
     * '0'：否，'1'：是
     */
    @ApiModelProperty("是否显示")
    @TableField("is_show")
    private String isShow;

    @ApiModelProperty("企业ID")
    @TableField("enterprise_id")
    private String enterpriseId;

    @ApiModelProperty("创建者")
    @TableField("creator")
    private String creator;

    @ApiModelProperty("创建时间")
    @TableField(value = "base_create_time", fill = FieldFill.INSERT)
    private Date baseCreateTime;

    @ApiModelProperty("更新时间")
    @TableField(value = "base_update_time", fill = FieldFill.UPDATE)
    private Date baseUpdateTime;
}
